import request from '@/utils/request'

// 查询用户加油卡列表
export function listOilcard(query) {
  return request({
    url: '/app/oilcard/list',
    method: 'get',
    params: query
  })
}

// 查询用户加油卡详细
export function getOilcard(oilcardId) {
  return request({
    url: '/app/oilcard/' + oilcardId,
    method: 'get'
  })
}

// 新增用户加油卡
export function addOilcard(data) {
  return request({
    url: '/app/oilcard',
    method: 'post',
    data: data
  })
}

// 修改用户加油卡
export function updateOilcard(data) {
  return request({
    url: '/app/oilcard',
    method: 'put',
    data: data
  })
}

// 删除用户加油卡
export function delOilcard(oilcardId) {
  return request({
    url: '/app/oilcard/' + oilcardId,
    method: 'delete'
  })
}

// 导出用户加油卡
export function exportOilcard(query) {
  return request({
    url: '/app/oilcard/export',
    method: 'get',
    params: query
  })
}
